import api from "../index.js"

// 新
export const getList = (data) => {
	return api.post('/api/Template/page',data)
}
// 剂型
export const dosformSelector = (data) => {
	return api.get('/api/pharmacy/dosformSelector',data)
}
// 计量
export const unitFrquSelector = (data) => {
	return api.get('/api/pharmacy/unitFrquSelector',data)
}
// 频率
export const usedFrquSelector = (data) => {
	return api.get('/api/pharmacy/usedFrquSelector',data)
}
// 用法
export const usageSelector = (data) => {
	return api.get('/api/pharmacy/usageSelector',data)
}

// 特殊处理
export const specialtreatmentSelector = (data) => {
	return api.get('/api/treated/specialtreatmentSelector',data)
}

// 中药用量/用法
export const GetValueList = (data) => {
	return api.post('/api/Dict/GetValueList',data)
}
// 敷贴部位
export const positionSelector = (data) => {
	return api.get('/api/treated/positionSelector',data)
}
// 药品搜索
export const getdrugSelector = (data) => {
	return api.post('/api/treated/drugSelector',data)
}
// 病例
export const getListByType = (data) => {
	return api.get('/api/CaseOption/getListByType',data)
}
// 诊断搜索
export const diseaseNameSelector = (data) => {
	return api.get('/api/treated/diseaseNameSelector',data)
}

// 添加
export const addTemplateApi = (data) => {
	return api.post('/api/Template/add',data)
}
// 删除

export const deleteTemplateApi = (data) => {
	return api.delete('/api/Template/delete',data)
}
// 详情

export const detailsApi = (data) => {
	return api.post('/api/Template/details',data)
}